package com.dx.security.provider;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author : Yu.Tan
 * @date : 2023/7/24 11:12
 * @desc : **
 * 继承原来的UserDetailsService新增自定义方法
 */
public interface CustomUserDetailsService extends UserDetailsService {
    /**
     *  重写loadUserByUsername 方法
     * @param var1 参数一
     * @param var2 参数二
     * @return
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserByUsername(String var1, String var2) throws UsernameNotFoundException;

}
